package main.common.factory.impl;

import main.common.factory.IFruitFactory;
import main.common.product.impl.Apple;
import main.common.product.impl.Mango;
import main.common.product.impl.Strawberry;

public class FruitFactory implements IFruitFactory {
    @Override
    public Apple createApple(double price, double discount) {
        return new Apple(price, discount);
    }

    @Override
    public Mango createMango(double price, double discount) {
        return new Mango(price, discount);
    }

    @Override
    public Strawberry createStrawberry(double price, double discount) {
        return new Strawberry(price, discount);
    }
}
